<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>{{ title }}</h1>


    <br/><br/>
<form class="navbar-form navbar-left" role="search" method="get" action="{% url 'posts:result1' %}">
               <div class="form=group">
                   <input type="text" class="form-control" name="q" placeholder="Search" value="{{ request.GET.q }}"/>
                   <button type="submit"  class="btn btn-default glyphicon glyphicon-search"> search </button>
               </div>
           </form>
    <br>
{% for obj in object_list %}
        <a href='{{ obj.get_absolute_url }}'>#{{ obj.id }}</a><br/>
        <b>{{ obj.patient.username }}</b><br/>
        {{ obj.patient.email }}<br/>
        <b>flare at:</b> {{ obj.flare_up_time }}<br/>
        <b>symptom1: </b> {{ obj.symptoms }}  <b>{{ obj.symptoms_level }}</b><br/>
        <b>happened when: </b>{{ obj.activity_performed_during_onset_of_symptoms }}<br/>

{% if obj.symptoms2 %}
    <b>symptom2: </b> {{ obj.symptoms2 }}  <b>{{ obj.symptoms_level2 }}</b><br/>
        <b>happened when: </b>{{ obj.activity_performed_during_onset_of_symptoms2 }}<br/>
{% endif %}

    {% if obj.symptoms3 %}
    <b>symptom3: </b> {{ obj.symptoms3 }}  <b>{{ obj.symptoms_level3 }}</b><br/>
        <b>happened when: </b>{{ obj.activity_performed_during_onset_of_symptoms3 }}<br/>
    {% endif %}
        </br>
    <br/>
{% endfor %}
{% if request.user.is_authenticated %}
    <b><a href="{% url "logout" %}">logout-></a></b>
{% endif %}

</body>
</html>